package com.sufen.common.exception.self;

/**
 * @description: 这是在自定义的异常中加入了自己定义的字段errorCode
 * @function:
 * @author: Liu Menglei
 * @Date: 2021/11/3 0003 20:04
 */
public class BizException extends RuntimeRootException{
    String errorCode;

    public BizException(String msg) {
        super(msg);
    }

    public BizException(Throwable cause) {
        super(cause);
    }

    public BizException(String errorCode,String msg){
        super(msg);
        this.errorCode = errorCode;
    }

    public BizException(String errorCode, Throwable cause) {
        super(cause);
        this.errorCode = errorCode;
    }

    public BizException(String errorCode,String msg,Throwable cause){
        super(msg,cause);
        this.errorCode = errorCode;
    }
}